package cn.tangsihai.hrm.vo;

import cn.tangsihai.hrm.util.PageList;
import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 聚合结果类
 */
@Data
public class AggPageList extends PageList {
    // 聚和结果
    private Map<String,List<TermsAggBucket>> termsAggResult = new HashMap<>();

    public AggPageList(){}

    public AggPageList(Long total,List rows , Map<String,List<TermsAggBucket>> termsAggResult){
        super(total,rows);
        this.termsAggResult = termsAggResult;
    }
}